package com.yanqu.road.entity.activity.pawnshop;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Objects;

@FieldTypeAnnotation(tableName = "t_c_pawnshop_trigger_user")
public class CrossPawnshopTriggerData extends DataObject {
    @FieldTypeAnnotation(select = true,update = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "id",update = true)
    private int id;
    @FieldTypeAnnotation(desc = "玩家")
    private long userId;
    @FieldTypeAnnotation(desc = "标记时间")
    private long triggerTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getTriggerTime() {
        return triggerTime;
    }

    public void setTriggerTime(long triggerTime) {
        this.triggerTime = triggerTime;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if (!Objects.equals(this.activityId, activityId)) {
            this.activityId = activityId;
            setUpdateOption();
        }
    }
}
